﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Model;

namespace BusinessLogic.Command
{
    public class GetLanguageListCommand : BaseCommand<List<APP_LANGUAGE>>
    {
        private int TXID { get; set; }

        public GetLanguageListCommand(int txID)
        {
            TXID = txID;
        }

        public override void Command()
        {
            CubeOfDB2Entities ctx = new CubeOfDB2Entities();

            Result = ctx.APP_LANGUAGE.Where(o => o.PERSONAL_ID == this.TXID).ToList();
        }
    }
}
